package com.domain;

import java.util.Date;
import java.util.Objects;

/**
 * 维修单流程
 */
public class Maintenance_process {
    private Integer order_id;//维修单id
    private Integer task_id;//任务id
    private String task_name;//任务名称
    private Integer transactor_id;//经办人id
    private String name;//经办人名称
    private Date finished_time;//完成时间
    private String detail;//内容
    private String reason;//驳回理由

    public Maintenance_process() {
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    public Integer getTask_id() {
        return task_id;
    }

    public void setTask_id(Integer task_id) {
        this.task_id = task_id;
    }

    public String getTask_name() {
        return task_name;
    }

    public void setTask_name(String task_name) {
        this.task_name = task_name;
    }

    public Integer getTransactor_id() {
        return transactor_id;
    }

    public void setTransactor_id(Integer transactor_id) {
        this.transactor_id = transactor_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getFinished_time() {
        return finished_time;
    }

    public void setFinished_time(Date finished_time) {
        this.finished_time = finished_time;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Maintenance_process process = (Maintenance_process) o;
        return Objects.equals(order_id, process.order_id) &&
                Objects.equals(task_id, process.task_id) &&
                Objects.equals(task_name, process.task_name) &&
                Objects.equals(transactor_id, process.transactor_id) &&
                Objects.equals(name, process.name) &&
                Objects.equals(finished_time, process.finished_time) &&
                Objects.equals(detail, process.detail) &&
                Objects.equals(reason, process.reason);
    }


    @Override
    public String toString() {
        return "Maintenance_process{" +
                "order_id=" + order_id +
                ", task_id=" + task_id +
                ", task_name='" + task_name + '\'' +
                ", transactor_id=" + transactor_id +
                ", name='" + name + '\'' +
                ", finished_time=" + finished_time +
                ", detail='" + detail + '\'' +
                ", reason='" + reason + '\'' +
                '}';
    }
}
